<html xmlns:th="http://www.thymeleaf.org">
<link type="text/css" href="/topjui/css/myui.css" rel="stylesheet"/>
<form id="customerform" method="post" style="padding-top:1px">
<input type="hidden" id="id" name="id" value="0">
<table class="editTable">
    <tr>
        <td class="label">巡视单位名称</td>
        <td>
            <input type="text" name="name" autocomplete="off" class="selectp" data-options="required:true" style="width:350px;">
        </td>
    </tr>
    <tr>
        <td class="label">单位负责人</td>
        <td>
            <input type="text" name="leader" autocomplete="off" class="selectp" data-options="required:true" style="width:350px;">
        </td>
    </tr>
    <tr>
        <td class="label">联系方式</td>
        <td>
            <input type="text" name="contact" autocomplete="off" class="selectp" data-options="required:true" style="width:350px;">
        </td>
    </tr>
    <tr>
        <td class="label">单位邮箱</td>
        <td>
            <input type="text" name="email" autocomplete="off" class="selectp" data-options="required:true" style="width:350px;">
        </td>
    </tr>
    <tr>
        <td class="label">合作时间</td>
        <td>
            <input id="form-starttime" type="text" name="starttime"  class="selectp" data-options="required:true" style="width:350px;">
        </td>
    </tr>
    <tr>
        <td class="label">状态</td>
        <td>
            <select name="status" style="width: 378px;" class="selectp">
                <option value="1">正常</option>
                <option value='0'>禁用</option>
            </select>
        </td>
    </tr>
</table>
</form>
<script th:inline="javascript">
    $(function () {
        $('#form-starttime').datebox({
            required: true,
            formatter: function (date) {

                var y = date.getFullYear();
                var m = date.getMonth() + 1;
                var d = date.getDate();
                return y + '-' + (m < 10 ? ('0' + m) : m) + '-' + (d < 10 ? ('0' + d) : d);

            }
        });
        $(".combo-text").removeAttr("style");
        $(".combo-text").attr("style", "width:350px;height:32px;line-height:32px");
        $(".combo-text").addClass("selectp");
        $(".combo-arrow").attr("style", "margin-left: -20px;margin-top: 8px;background-color:rgba(0,0,0,0)");
        $(".combo-panel").attr("style", "margin-top:10px;");
    })

</script>
</html>